{{extend 'layout.html'}}
<h1>Detalle de comprobante</h1>
<div id="tabs">
    <ul>
        <li><a href="#tabs-1">Datos del comprobante</a></li>
        <li><a href="#tabs-2">Detalle</a></li>
    </ul>
    <div id="tabs-1">
    {{if comprobante:}}
        <span>{{=email}}&nbsp;</span>
        <span>{{=A("Descargar PDF", _href=URL(r = request, c="salida", f="invoice", args = ["comprobante", comprobante.id])) }}&nbsp;</span>
        <span>{{=A("Reprocesar", _href=URL(r = request, c="emision", f="reprocesar", args = [comprobante.id])) }}&nbsp;</span>
        <span>{{=A("Reprocesar (carga manual de totales)", _href=URL(r = request, c="ialt", f="reprocesar", args = [comprobante.id])) }}</span>
        <span>{{=SQLFORM(db.comprobante, comprobante.id, readonly = True)}}</span>
    {{pass}}
    </div>
    <div id="tabs-2">
    {{if detalle:}}
        {{=detalle}}
    {{pass}}
    </div>
</div>
